<?php
require_once 'Net/Gearman/Client.php';

class judge_process{

	private $db_obj_result ;
	//临时存放结果 
	private $result ;
	//调用后台评测的参数
	private $arg ;

	private $db_obj_code ;

	function __construct( $db ){
		
		$this->db = $db ;
		$this->db_obj_result = new db_obj_result( $db ) ;

	}

	function do_judge( $arg ){
		
		$client= new GearmanClient();
		$client->addServer('172.16.40.92');
		$result = $client->do("judge", $arg );

		if ($result){
			
			return $result;
		 }

	}

}
